<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .tab-item {

        }

        .tab-item.selected {
            color: #f00;
        }
    </style>
    <script src="../libs/angular.js"></script>
    <script src="index.js"></script>
</head>
<body ng-app="myApp">

<div ng-controller="myCtrl">
    <ul>
        <li ng-class="[{selected:tabIndex==$index}]"
            ng-click="tabIndex=$index"
            ng-repeat="i in getNumber(3) track by $index"
            class="tab-item">
            {{$index}}-{{tabIndex}}

        </li>
    </ul>

    <h2>{{getRandom()}}</h2>

    <a ng-href="/#/goode_detail/{{tabIndex}}">1111</a>
</div>

</body>
</html>